﻿using Common.Damin;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;

namespace Common.Infrastructrue
{

    public class DbCommontext : DbContext
    {
        public DbCommontext(DbContextOptions<DbCommontext> options) : base( options) { }

        ////溯源管理信息添加
        public DbSet<Companymanage> companymanages { get; set; }
        //照片表
        public DbSet<Photograph> photographs { get; set; }
        //用户
        public DbSet<User> users { get; set; }
        //橘色
        public DbSet<Role> roles { get; set; }
        //橘色用户
        public DbSet<Rel_user_role> Rel_User_Roles { get; set; }
        //权限
        public DbSet<Perms> perms { get; set; }
        //角色权限
        public DbSet<Rel_role_perm> Rel_Role_Perms { get; set; }

        //养殖信息
        public DbSet<Cultivation> cultivations { get; set; }
        //企业信息
        public DbSet<Cultivationcorporate> cultivationcorporates { get; set; }

    }
}
